<?php
namespace app\controller;

use app\BaseController;

class Test extends BaseController{
    public function index()
    {
        $arr=[
          'id'=>1,
          'message'=>'ok',
          'data'=>[
              'id'=>40
          ]
        ];
        return json($arr);
    }
}